package com.app.miwawa.api.esm.entity.customer;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 试听
 * <p>描述: 客户资料</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月9日 下午3:23:21
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_ESM_CUSTOMER_AUDITION")
public class Audition extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -7824241505679999270L;

	// 试听班级
	@Column(name = "classes", length = 50, nullable = true)
	private String classes;
	
	// 试听班级ID
	@Column(name = "classes_id", length = 50, nullable = true)
	private String classesid;
	
	//预约老师
	@Column(name = "teacher",length = 50, nullable = true)
	private String teacher;
	
	// 预约ID
	@Column(name = "bespoke_id", length = 50, nullable = true)
	private String bespokeid;
		
	// 试听时间（诺访时间）
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "promise_date", nullable = true)
	private Date promiseDate;

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public String getClassesid() {
		return classesid;
	}

	public void setClassesid(String classesid) {
		this.classesid = classesid;
	}
	
	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	public String getBespokeid() {
		return bespokeid;
	}

	public void setBespokeid(String bespokeid) {
		this.bespokeid = bespokeid;
	}

	public Date getPromiseDate() {
		return promiseDate;
	}

	public void setPromiseDate(Date promiseDate) {
		this.promiseDate = promiseDate;
	}
	
}
